<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.Canvas.AvaloniaContextInterpreter Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.Canvas.AvaloniaContextInterpreter Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Contains methods to render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Canvas.   
 <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ab1be8c4c6246dad9c92fcc3f2b3cdd77"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> </td></tr>
<tr class="memdesc:ab1be8c4c6246dad9c92fcc3f2b3cdd77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defines whether text items should be converted into paths when drawing.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">More...</a><br /></td></tr>
<tr class="separator:ab1be8c4c6246dad9c92fcc3f2b3cdd77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4fa27f5763ef89c05ec22a34d4e72dc9"><td class="memItemLeft" align="right" valign="top">static Avalonia.Controls.Canvas&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a4fa27f5763ef89c05ec22a34d4e72dc9">PaintToCanvas</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> textOption=TextOptions.ConvertIfNecessary, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a> filterOption=default)</td></tr>
<tr class="memdesc:a4fa27f5763ef89c05ec22a34d4e72dc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Canvas.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a4fa27f5763ef89c05ec22a34d4e72dc9">More...</a><br /></td></tr>
<tr class="separator:a4fa27f5763ef89c05ec22a34d4e72dc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a60e889c3a2b06965ffd6edc5acbd5e"><td class="memItemLeft" align="right" valign="top">static Avalonia.Controls.Control&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a3a60e889c3a2b06965ffd6edc5acbd5e">PaintToCanvas</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, bool graphicsAsControls, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> textOption=TextOptions.ConvertIfNecessary, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a> filterOption=default)</td></tr>
<tr class="memdesc:a3a60e889c3a2b06965ffd6edc5acbd5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a3a60e889c3a2b06965ffd6edc5acbd5e">More...</a><br /></td></tr>
<tr class="separator:a3a60e889c3a2b06965ffd6edc5acbd5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51bccb9aa2fd6e9c6b539d454567d948"><td class="memItemLeft" align="right" valign="top">static Avalonia.Controls.Control&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a51bccb9aa2fd6e9c6b539d454567d948">PaintToCanvas</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, bool graphicsAsControls, Dictionary&lt; string, Delegate &gt; taggedActions, bool removeTaggedActionsAfterExecution=true, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> textOption=TextOptions.ConvertIfNecessary, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a> filterOption=default)</td></tr>
<tr class="memdesc:a51bccb9aa2fd6e9c6b539d454567d948"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a51bccb9aa2fd6e9c6b539d454567d948">More...</a><br /></td></tr>
<tr class="separator:a51bccb9aa2fd6e9c6b539d454567d948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00b8774edb717826eb45bf9105a003f4"><td class="memItemLeft" align="right" valign="top">static Avalonia.Controls.Canvas&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a00b8774edb717826eb45bf9105a003f4">PaintToCanvas</a> (this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> page, Dictionary&lt; string, Delegate &gt; taggedActions, bool removeTaggedActionsAfterExecution=true, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> textOption=TextOptions.ConvertIfNecessary, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a> filterOption=default)</td></tr>
<tr class="memdesc:a00b8774edb717826eb45bf9105a003f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a00b8774edb717826eb45bf9105a003f4">More...</a><br /></td></tr>
<tr class="separator:a00b8774edb717826eb45bf9105a003f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2fc1f3d6c41fd77fbbb72611db9c85c1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a2fc1f3d6c41fd77fbbb72611db9c85c1">PaintToAnimatedCanvas</a> (this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a> animation, double frameRate=60, double durationScaling=1, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a> textOption=TextOptions.ConvertIfNecessary, <a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a> filterOption=default)</td></tr>
<tr class="memdesc:a2fc1f3d6c41fd77fbbb72611db9c85c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Render an <a class="el" href="class_vect_sharp_1_1_animation.html" title="Describes an animation constituted by a number of frames and transitions between them.">Animation</a> to an Avalonia.Controls.Control.   <a href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#a2fc1f3d6c41fd77fbbb72611db9c85c1">More...</a><br /></td></tr>
<tr class="separator:a2fc1f3d6c41fd77fbbb72611db9c85c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Contains methods to render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Canvas.  </p>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02604">2604</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="ab1be8c4c6246dad9c92fcc3f2b3cdd77" name="ab1be8c4c6246dad9c92fcc3f2b3cdd77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1be8c4c6246dad9c92fcc3f2b3cdd77">&#9670;&#160;</a></span>TextOptions</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">VectSharp.Canvas.AvaloniaContextInterpreter.TextOptions</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Defines whether text items should be converted into paths when drawing.  </p>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02609">2609</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a2fc1f3d6c41fd77fbbb72611db9c85c1" name="a2fc1f3d6c41fd77fbbb72611db9c85c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fc1f3d6c41fd77fbbb72611db9c85c1">&#9670;&#160;</a></span>PaintToAnimatedCanvas()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_canvas_1_1_animated_canvas.html">AnimatedCanvas</a> VectSharp.Canvas.AvaloniaContextInterpreter.PaintToAnimatedCanvas </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_animation.html">Animation</a>&#160;</td>
          <td class="paramname"><em>animation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>frameRate</em> = <code>60</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>durationScaling</em> = <code>1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a>&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>TextOptions.ConvertIfNecessary</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a>&#160;</td>
          <td class="paramname"><em>filterOption</em> = <code>default</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render an <a class="el" href="class_vect_sharp_1_1_animation.html" title="Describes an animation constituted by a number of frames and transitions between them.">Animation</a> to an Avalonia.Controls.Control.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">animation</td><td>The <a class="el" href="class_vect_sharp_1_1_animation.html" title="Describes an animation constituted by a number of frames and transitions between them.">Animation</a> to render.</td></tr>
    <tr><td class="paramname">frameRate</td><td>The target frame rate of the animation, in frames-per-second (fps).</td></tr>
    <tr><td class="paramname">durationScaling</td><td>A scaling factor that will be applied to all durations in the animation. Values greater than 1 slow down the animation, values smaller than 1 accelerate it. Note that this does not affect the frame rate of the animation.</td></tr>
    <tr><td class="paramname">textOption</td><td>Defines whether text items should be converted into paths when drawing.</td></tr>
    <tr><td class="paramname">filterOption</td><td>Defines how and whether image filters should be rasterised when rendering the image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An Avalonia.Controls.Control containing the rendered animation.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02727">2727</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<a id="a51bccb9aa2fd6e9c6b539d454567d948" name="a51bccb9aa2fd6e9c6b539d454567d948"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51bccb9aa2fd6e9c6b539d454567d948">&#9670;&#160;</a></span>PaintToCanvas() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Avalonia.Controls.Control VectSharp.Canvas.AvaloniaContextInterpreter.PaintToCanvas </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>graphicsAsControls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Dictionary&lt; string, Delegate &gt;&#160;</td>
          <td class="paramname"><em>taggedActions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>removeTaggedActionsAfterExecution</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a>&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>TextOptions.ConvertIfNecessary</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a>&#160;</td>
          <td class="paramname"><em>filterOption</em> = <code>default</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">graphicsAsControls</td><td>If this is true, each graphics object (e.g. paths, text...) is rendered as a separate Avalonia.Controls.Control. Otherwise, they are directly rendered onto the drawing context (which is faster, but does not allow interactivity).</td></tr>
    <tr><td class="paramname">taggedActions</td><td>A Dictionary&lt;String, Delegate&gt; containing the Actions that will be performed on items with the corresponding tag. If <em>graphicsAsControls</em>  is true, the delegates should be voids that accept one parameter of type TextBlock or Path (depending on the tagged item), otherwise, they should accept one parameter of type <a class="el" href="class_vect_sharp_1_1_canvas_1_1_render_action.html" title="Represents a light-weight rendering action.">RenderAction</a> and return an IEnumerable&lt;RenderAction&gt; of the actions that will actually be performed.</td></tr>
    <tr><td class="paramname">removeTaggedActionsAfterExecution</td><td>Whether the Actions should be removed from <em>taggedActions</em>  after their execution. Set to false if the same Action should be performed on multiple items with the same tag.</td></tr>
    <tr><td class="paramname">textOption</td><td>Defines whether text items should be converted into paths when drawing.</td></tr>
    <tr><td class="paramname">filterOption</td><td>Defines how and whether image filters should be rasterised when rendering the image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An Avalonia.Controls.Control containing the rendered graphics objects.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02679">2679</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<a id="a3a60e889c3a2b06965ffd6edc5acbd5e" name="a3a60e889c3a2b06965ffd6edc5acbd5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a60e889c3a2b06965ffd6edc5acbd5e">&#9670;&#160;</a></span>PaintToCanvas() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Avalonia.Controls.Control VectSharp.Canvas.AvaloniaContextInterpreter.PaintToCanvas </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>graphicsAsControls</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a>&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>TextOptions.ConvertIfNecessary</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a>&#160;</td>
          <td class="paramname"><em>filterOption</em> = <code>default</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">graphicsAsControls</td><td>If this is true, each graphics object (e.g. paths, text...) is rendered as a separate Avalonia.Controls.Control. Otherwise, they are directly rendered onto the drawing context (which is faster, but does not allow interactivity).</td></tr>
    <tr><td class="paramname">textOption</td><td>Defines whether text items should be converted into paths when drawing.</td></tr>
    <tr><td class="paramname">filterOption</td><td>Defines how and whether image filters should be rasterised when rendering the image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An Avalonia.Controls.Control containing the rendered graphics objects.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02652">2652</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<a id="a00b8774edb717826eb45bf9105a003f4" name="a00b8774edb717826eb45bf9105a003f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00b8774edb717826eb45bf9105a003f4">&#9670;&#160;</a></span>PaintToCanvas() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Avalonia.Controls.Canvas VectSharp.Canvas.AvaloniaContextInterpreter.PaintToCanvas </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Dictionary&lt; string, Delegate &gt;&#160;</td>
          <td class="paramname"><em>taggedActions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>removeTaggedActionsAfterExecution</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a>&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>TextOptions.ConvertIfNecessary</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a>&#160;</td>
          <td class="paramname"><em>filterOption</em> = <code>default</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Control.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">taggedActions</td><td>A Dictionary&lt;String, Delegate&gt; containing the Actions that will be performed on items with the corresponding tag. The delegates should accept one parameter of type TextBlock or Path (depending on the tagged item).</td></tr>
    <tr><td class="paramname">removeTaggedActionsAfterExecution</td><td>Whether the Actions should be removed from <em>taggedActions</em>  after their execution. Set to false if the same Action should be performed on multiple items with the same tag.</td></tr>
    <tr><td class="paramname">textOption</td><td>Defines whether text items should be converted into paths when drawing.</td></tr>
    <tr><td class="paramname">filterOption</td><td>Defines how and whether image filters should be rasterised when rendering the image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An Avalonia.Controls.Control containing the rendered graphics objects.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02705">2705</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<a id="a4fa27f5763ef89c05ec22a34d4e72dc9" name="a4fa27f5763ef89c05ec22a34d4e72dc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fa27f5763ef89c05ec22a34d4e72dc9">&#9670;&#160;</a></span>PaintToCanvas() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Avalonia.Controls.Canvas VectSharp.Canvas.AvaloniaContextInterpreter.PaintToCanvas </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td>
          <td class="paramname"><em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html#ab1be8c4c6246dad9c92fcc3f2b3cdd77">TextOptions</a>&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>TextOptions.ConvertIfNecessary</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_filter_option.html">FilterOption</a>&#160;</td>
          <td class="paramname"><em>filterOption</em> = <code>default</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Render a <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to an Avalonia.Controls.Canvas.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">page</td><td>The <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to render.</td></tr>
    <tr><td class="paramname">textOption</td><td>Defines whether text items should be converted into paths when drawing.</td></tr>
    <tr><td class="paramname">filterOption</td><td>Defines how and whether image filters should be rasterised when rendering the image.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An Avalonia.Controls.Canvas containing the rendered graphics objects.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_avalonia_context_8cs_source.html#l02634">2634</a> of file <a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.Canvas/<a class="el" href="_avalonia_context_8cs_source.html">AvaloniaContext.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_canvas.html">Canvas</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_canvas_1_1_avalonia_context_interpreter.html">AvaloniaContextInterpreter</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
